wayland: Remove a useless else-if
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 16 Sep 2013 22:38:48 +0000 (18:38 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 28 Oct 2013 22:03:26 +0000 (18:03 -0400)
We already check for impl->surface as the first branch we do.

gdk/wayland/gdkwindow-wayland.c

index 26afb1f98d07b224379663fca7348d3181eec2b2..955167063815822ef07faeb377b9042dadd9e10a 100644 (file)
@@ -1106,7 +1106,7 @@ gdk_wayland_window_hide_surface (GdkWindow *window,
           wl_surface_attach (impl->surface, NULL, 0, 0);
           wl_surface_commit (impl->surface);
         }
-      else if (impl->surface)
+      else
         {
           if (impl->gtk_surface)
             gtk_surface_destroy (impl->gtk_surface);